package com.cskaoyan.bean.vo.wx;


import com.cskaoyan.bean.vo.wx.mygroupon.WxGoodsVo;
import com.cskaoyan.bean.vo.wx.mygroupon.WxGrouponVo;
import com.cskaoyan.bean.vo.wx.mygroupon.WxRulesVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: lsy
 * @class: WxGrouponMyVo
 */
@Data
public class WxGrouponMyVo {
    // 团购id groupon.id
    private int id;
    // order.orderSn
    private String orderSn;
    // order.status对应的文字
    private String orderStatusText;
    // 团购规则
    private WxRulesVo rules;
    // 团购内容
    private WxGrouponVo groupon;
    // 参加人数 groupon表这个orderId有几个
    private int joinerCount;
    // orderId查order_goods表
    private List<WxGoodsVo> goodsList;
    // order.actualPrice
    private BigDecimal actualPrice;
    // state 是0，根据userid查creator
    // state 是1，根据create_user_id查creator
    private String creator;
    // 根据state判断
    private boolean isCreator;

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public boolean isCreator() {
        return isCreator;
    }

    public void setIsCreator(boolean creator) {
        isCreator = creator;
    }
}
